package com.thz.houserental.infrastructure.web.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.thz.houserental.domain.user.UserVo;
import com.thz.houserental.infrastructure.table.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserMapper extends BaseMapper<User> {
    List<String> getUserRoles(@Param("userId") String userId);

    IPage<UserVo> selectPageVo(Page<UserVo> userVoPage, @Param(Constants.WRAPPER) Wrapper<User> wrapper);
}
